<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Narayam</title>
		<style type="text/css">
			.narayam-input {
				background-color: lightblue;
			}
		</style>
		<script language="javascript" type="text/javascript" src="narayam.js"></script>
		<script language="javascript" type="text/javascript" src="narayam.rules.mr.js"></script>
		<script language="javascript" type="text/javascript" src="narayam.rules.mr-inscript.js"></script>
		<script language="javascript" type="text/javascript" src="narayam.rules.ml.js"></script>
		<script language="javascript" type="text/javascript" src="narayam.rules.ml-inscript.js"></script>
		<script language="javascript" type="text/javascript">
			function narayamOnLoad() {
				var allInputs = document.getElementsByTagName('input');
				var count = allInputs.length;
				var inputs = [];
				for(var i=0; i < count; i++) {
					if(allInputs[i].getAttribute('type')==='text' ||
						allInputs[i].getAttribute('type')==='search' ||
						allInputs[i].getAttribute('type')==='' ||
						allInputs[i].getAttribute('type')== undefined) {
					}
					inputs.push(allInputs[i]);
				}
				narayam.setShortcutKey({ ctrlKey: true, key: 'm'});
				narayam.addInputs(inputs);
				narayam.addInputs(document.getElementsByTagName('textarea'));
				narayam.enabled = true;
				narayam.setup('narayam-control');

			}

			if (window.addEventListener){
				window.addEventListener('load', narayamOnLoad, false);
			} else if (window.attachEvent){
				window.attachEvent('onload', narayamOnLoad);
			}

		</script>
	</head>
	<body>
		<div id="narayam-control"></div>
		<input type="text" />
		<textarea cols="20" rows="5"></textarea>
	</body>
</html>
